<?php
require_once (dirname(__FILE__).'/../../common/config/params.php');
// This is the configuration for yiic console application.
// Any writable CConsoleApplication properties can be configured here.
return array(
	'basePath'=> dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
	'name'=>'360数据分析平台',
    'language'=>'zh_cn',
	'preload'=>array('log'),

	// autoloading model and component classes
	'import'=>array(
		'root.common.dal.*',
		'root.common.models.*',
		'root.common.components.*',
        'root.common.utils.*',
        'root.frontend.components.*',
        'root.frontend.models.*',
	),

	// application components
	'components'=>array(
		'db'=>array(
			'connectionString' => 'mysql:host=client05v.safe.zzbc.qihoo.net;dbname=dw',
			'emulatePrepare' => true,
            'enableParamLogging' =>  true,
            'enableProfiling' => true,
			'username' => 'dw',
			'password' => 'dwcloud360',
			'charset' => 'utf8',
		),
		'log'=>array(
			'class'=>'CLogRouter',
			'routes'=>array(
				array(
					'class'=>'CFileLogRoute',
                    'maxFileSize' => 1024 * 1024,
                    'maxLogFiles' => 10,
                    'logPath' => 'log',
                    'logFile' => 'console.log.wf',
					'levels'=>'error, warning',
				),
				array(
					'class'=>'CFileLogRoute',
                    'maxFileSize' => 1024 * 1024,
                    'maxLogFiles' => 10,
                    'logPath' => 'log',
                    'logFile' => 'console.log',
					'levels'=>'info',
                ),
                array(
					'class'=>'CFileLogRoute',
                    'maxFileSize' => 1024 * 1024,
                    'maxLogFiles' => 10,
                    'logPath' => 'log',
                    'logFile' => 'console.sql.log',
                    'categories'=> 'system.db.*',
					'levels'=>'trace, profile',
				),   
			),
		),
	),

	// application-level parameters that can be accessed
	// using Yii::app()->params['paramName']
	'params'=>array(
		// this is used in contact page
		'adminEmail'=>'shupeng@360.cn',
	),
);
